@extends('Home.layout.layout')
@section('con')
<div class="container">
	<div class="col-md-10 col-xs-12 col-md-offset-1">
		<ol class="breadcrumb" style="background-color:#fff;">
			<li><a href="{{url('/homes/index')}}">首页</a></li>
			<li><a href="{{url('/home/ptype/index',['id'=>$ptype->id])}}">{{$ptype->pname}}</a></li>
		  	<li class="active" style="color:#333;">{{$ptypes->pname}}</li>
		</ol>
	</div>
</div>

<div class="container">
	<div class="col-md-10 col-xs-12 col-md-offset-1">
		
			<div class="row">
				<div class="col-sm-8 col-xs-11" style="margin-right:30px;">
					<div class="row" style="margin-left:10px;">
					@if(!empty($pcontent))
						<a href=""><img src="{{asset($pcontent[0]->pic)}}" width="65%" height="311" alt="" style="float:left; margin-right:-3px;"></a>
					@endif
						@foreach($pcontent as $k => $v)
						@if($k != 0)
						<a href=""><img src="{{asset($v->pic)}}" width="31%" height="153px" alt="" style="float:left; margin-right:5px; margin-bottom:5px;"></a>
						@endif
						@endforeach
					</div>
					<div class="row" style="border-bottom:1px solid #C9C9C9; margin-left:10px;">
						<div style="width:5px;height:20px;background-color:#006cc2;float:left;margin-right:5px;"></div>
						<h5 style="margin-top:3px;">{{$ptypes->pname}}</h5>
					</div>
					@foreach($pcontents as $k =>$v)
					<a href="{{url('/home/pcontent/index',['id'=>$v->id])}}"><div class="row" style="border-bottom:1px solid #C9C9C9; margin-top:20px; margin-left:10px;">
						<div class="row">
							<div class="col-sm-4">
								<img src="{{asset($v->pic)}}" width="250px" height="148px" alt="">
							</div>
							<div class="col-sm-7 col-sm-offset-1" style="overflow:auto;">
								<h4 style="text-align:center;color:#333;">{{$v->title}}</h4>
								<p style="min-height:70px;color:#333;">{{$v->intro}}</p>
								<span style="color:#333;">{{date('Y-m-d H:i',$v->time)}}</span>
							</div>
							</div>
							<div class="row" style="height:20px;"></div>
						</div></a>
					@endforeach
					<div clas="row" style="text-align:center;line-height: 50px;margin-top:10px;">
						<a style="color:#333;text-decoration: none;" href="{!!$pcontents->url(0)!!}">首页</a>&nbsp;|&nbsp;
						<a style="color:#333;text-decoration: none;" href="{!!$pcontents->previousPageUrl()!!}">上一页</a>
						<a style="color:#333;text-decoration: none;" href="{!!$pcontents->nextPageUrl()!!}">下一页</a>&nbsp;|&nbsp;
						<a style="color:#333;text-decoration: none;" href="{!!$pcontents->url($pcontents->lastPage())!!}">尾页</a>&nbsp;&nbsp;
						<span>当前页码:{!!$pcontents->currentPage()!!}/{!!$pcontents->lastPage()!!}</span>&nbsp;&nbsp;<span>共{!!$pcontents->total()!!}条</span>
					</div>
			  		</div>
			  	<div class="col-sm-3 col-xs-10" style="margin-left:4%;">
			  		<a style="text-decoration: none;" href="{{url('/home/pcontent/map')}}">
					<div class="row" style="border-top:1px solid #006cc2;">
					    <h5 style="font-size:18px;color:#006cc2; margin-left:25%;">仁爱项目地图</h5>
					    <img src="{{asset('/public/Home/images/map.png')}}" width=100% style="border:0px;">
					</div>
					</a>
					<div class="row" style="margin-top:20px;border:1px solid #C9C9C9;overflow:hidden;">
						<p style="text-align:right;"><a style="text-decoration: none;" href="{{url('/home/ptype/index',['id'=>$ptype->id])}}">查看更多</a></p>
						<ul style="margin-left:20px;">
						@foreach($pcons as $k => $v)
							<li><a  href="{{url('/home/pcontent/index',['id'=>$v->id])}}" style="color:#333;text-decoration: none;">{{$v->title}}</a></p></li>
						@endforeach
						</ul>
					</div>
					<div class="row" style="margin-top:40px;border:1px solid #C9C9C9;overflow:hidden;">
						<p style="text-align:right;"><a style="text-decoration: none;" href="{{url('/home/loveser/index')}}">查看更多</a></p>
						@foreach($acts as $k => $v)
						<ul style="margin-left:20px;">
							<li><a href="{{url('/home/loveser/act',['id'=>$v->id])}}" style="color:#333;text-decoration: none;">{{$v->title}}</a></p></li>
						</ul>
						@endforeach
					</div>
			  	</div>	
			</div>
		
	</div>
</div>
@endsection